<template>
  <div>
       <mc-a :url="href" mck1="a" :mcv1="input" target="_blank" style="color:red">跳转</mc-a>
       <el-input v-model="input"></el-input>
       <el-button @click="print">打印</el-button>
       <el-button @click="change">改变</el-button>
  </div>
</template>

<script>
import McA from "./components/McA";
import McRedirectButton from "./components/McRedirectButton";
export default {
    data(){
      return {
        href:"http://www.magicalcoder.com",
        input:""
      }
    },
    components:{
      McA,
      McRedirectButton
    },
    methods:{
        print(){
            console.log(this.form)
        },
        change(){
            //this.form.userName = false;
            this.href = "http://www.baidu.com";
        }
    }
}
</script>

<style>

</style>
